[INFO] fetching crate nixcfg 0.2.0...
[INFO] checking nixcfg-0.2.0 against master#158f00a1c5175648af6f6099b075f78d1d014a28 for pr-121251
[INFO] extracting crate nixcfg 0.2.0 into /workspace/builds/worker-2-tc1/source
[INFO] validating manifest of crates.io crate nixcfg 0.2.0 on toolchain 158f00a1c5175648af6f6099b075f78d1d014a28
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+158f00a1c5175648af6f6099b075f78d1d014a28" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate nixcfg 0.2.0
[INFO] finished tweaking crates.io crate nixcfg 0.2.0
[INFO] tweaked toml for crates.io crate nixcfg 0.2.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+158f00a1c5175648af6f6099b075f78d1d014a28" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+158f00a1c5175648af6f6099b075f78d1d014a28" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded arenatree v0.1.3
[INFO] [stderr]   Downloaded rnix v0.4.2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+158f00a1c5175648af6f6099b075f78d1d014a28" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 4d248a803249a8a2539772caccff235b0d3032d02304878ed7f530b22a0111ff
[INFO] running `Command { std: "docker" "start" "-a" "4d248a803249a8a2539772caccff235b0d3032d02304878ed7f530b22a0111ff", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "4d248a803249a8a2539772caccff235b0d3032d02304878ed7f530b22a0111ff", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4d248a803249a8a2539772caccff235b0d3032d02304878ed7f530b22a0111ff", kill_on_drop: false }`
[INFO] [stdout] 4d248a803249a8a2539772caccff235b0d3032d02304878ed7f530b22a0111ff
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+158f00a1c5175648af6f6099b075f78d1d014a28" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 173ff7045128c8e3a01849035a8a2b91efcd52cccff8213ff0a44db40ff099e1
[INFO] running `Command { std: "docker" "start" "-a" "173ff7045128c8e3a01849035a8a2b91efcd52cccff8213ff0a44db40ff099e1", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v0.4.30
[INFO] [stderr]    Compiling unicode-xid v0.1.0
[INFO] [stderr]    Compiling syn v0.15.44
[INFO] [stderr]     Checking unicode-width v0.1.11
[INFO] [stderr]    Compiling unicode-segmentation v1.11.0
[INFO] [stderr]    Compiling arrayvec v0.4.12
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]     Checking ansi_term v0.12.1
[INFO] [stderr]     Checking vec_map v0.8.2
[INFO] [stderr]     Checking nodrop v0.1.14
[INFO] [stderr]     Checking strsim v0.8.0
[INFO] [stderr]     Checking arenatree v0.1.3
[INFO] [stderr]     Checking smol_str v0.1.24
[INFO] [stderr]     Checking textwrap v0.11.0
[INFO] [stderr]     Checking clap v2.34.0
[INFO] [stderr]    Compiling heck v0.3.3
[INFO] [stderr]     Checking rnix v0.4.2
[INFO] [stderr]    Compiling quote v0.6.13
[INFO] [stderr]    Compiling structopt-derive v0.2.18
[INFO] [stderr]     Checking structopt v0.2.18
[INFO] [stderr]     Checking nixcfg v0.2.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:95:9
[INFO] [stdout]    |
[INFO] [stdout] 95 |         write!(file, "{}", content);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]    = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:126:13
[INFO] [stdout]     |
[INFO] [stdout] 126 |             write!(content, "{}", ast);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0063]: missing field `keep_eol` in initializer of `Command`
[INFO] [stdout]    --> src/main.rs:342:27
[INFO] [stdout]     |
[INFO] [stdout] 342 |                 let cmd = Command::Set {
[INFO] [stdout]     |                           ^^^^^^^^^^^^ missing `keep_eol`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:344:28
[INFO] [stdout]     |
[INFO] [stdout] 344 |                     value: replace_by
[INFO] [stdout]     |                            ^^^^^^^^^^ expected `Option<String>`, found `String`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected enum `Option<String>`
[INFO] [stdout]              found struct `String`
[INFO] [stdout] help: try wrapping the expression in `Some`
[INFO] [stdout]     |
[INFO] [stdout] 344 |                     value: Some(replace_by)
[INFO] [stdout]     |                            +++++          +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0063, E0308.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0063`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `nixcfg` (bin "nixcfg" test) due to 3 previous errors
[INFO] running `Command { std: "docker" "inspect" "173ff7045128c8e3a01849035a8a2b91efcd52cccff8213ff0a44db40ff099e1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "173ff7045128c8e3a01849035a8a2b91efcd52cccff8213ff0a44db40ff099e1", kill_on_drop: false }`
[INFO] [stdout] 173ff7045128c8e3a01849035a8a2b91efcd52cccff8213ff0a44db40ff099e1
[INFO] checking nixcfg-0.2.0 against try#b4fc5dbf0bc33be331f9d893db5b3a794f29724a+rustflags=-Dexplicit_range -Dtrait_impl_range -Wrange_syntax -Wrange_bounds for pr-121251
[INFO] extracting crate nixcfg 0.2.0 into /workspace/builds/worker-2-tc2/source
[INFO] validating manifest of crates.io crate nixcfg 0.2.0 on toolchain b4fc5dbf0bc33be331f9d893db5b3a794f29724a
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b4fc5dbf0bc33be331f9d893db5b3a794f29724a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate nixcfg 0.2.0
[INFO] finished tweaking crates.io crate nixcfg 0.2.0
[INFO] tweaked toml for crates.io crate nixcfg 0.2.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b4fc5dbf0bc33be331f9d893db5b3a794f29724a" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b4fc5dbf0bc33be331f9d893db5b3a794f29724a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+b4fc5dbf0bc33be331f9d893db5b3a794f29724a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] e36a969a5419cf36b21accc6d73cc957e5d118a88bb4425a5d1903282e9e720a
[INFO] running `Command { std: "docker" "start" "-a" "e36a969a5419cf36b21accc6d73cc957e5d118a88bb4425a5d1903282e9e720a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e36a969a5419cf36b21accc6d73cc957e5d118a88bb4425a5d1903282e9e720a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e36a969a5419cf36b21accc6d73cc957e5d118a88bb4425a5d1903282e9e720a", kill_on_drop: false }`
[INFO] [stdout] e36a969a5419cf36b21accc6d73cc957e5d118a88bb4425a5d1903282e9e720a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dexplicit_range -Dtrait_impl_range -Wrange_syntax -Wrange_bounds" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+b4fc5dbf0bc33be331f9d893db5b3a794f29724a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] b39d6f0018611232a57f8ca3e78a1500661753011d176678bf490a7e60630cc2
[INFO] running `Command { std: "docker" "start" "-a" "b39d6f0018611232a57f8ca3e78a1500661753011d176678bf490a7e60630cc2", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v0.4.30
[INFO] [stderr]    Compiling unicode-xid v0.1.0
[INFO] [stderr]    Compiling syn v0.15.44
[INFO] [stderr]    Compiling arrayvec v0.4.12
[INFO] [stderr]    Compiling unicode-segmentation v1.11.0
[INFO] [stderr]     Checking unicode-width v0.1.11
[INFO] [stderr]     Checking nodrop v0.1.14
[INFO] [stderr]     Checking ansi_term v0.12.1
[INFO] [stderr]     Checking strsim v0.8.0
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]     Checking vec_map v0.8.2
[INFO] [stderr]     Checking smol_str v0.1.24
[INFO] [stderr]     Checking arenatree v0.1.3
[INFO] [stderr]     Checking textwrap v0.11.0
[INFO] [stderr]     Checking clap v2.34.0
[INFO] [stderr]    Compiling heck v0.3.3
[INFO] [stderr]     Checking rnix v0.4.2
[INFO] [stderr]    Compiling quote v0.6.13
[INFO] [stderr]    Compiling structopt-derive v0.2.18
[INFO] [stderr]     Checking structopt v0.2.18
[INFO] [stderr]     Checking nixcfg v0.2.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: usage of `Range` range syntax
[INFO] [stdout]    --> src/main.rs:169:33
[INFO] [stdout]     |
[INFO] [stdout] 169 |                     let range = node.span.start as usize .. node.span.end.unwrap() as usize;
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: requested on the command line with `-W range-syntax`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: usage of `Range` range syntax
[INFO] [stdout]    --> src/main.rs:169:33
[INFO] [stdout]     |
[INFO] [stdout] 169 |                     let range = node.span.start as usize .. node.span.end.unwrap() as usize;
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: requested on the command line with `-W range-syntax`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: usage of `Range` range syntax
[INFO] [stdout]    --> src/main.rs:315:36
[INFO] [stdout]     |
[INFO] [stdout] 315 |             let pattern = &content[2..i];
[INFO] [stdout]     |                                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: usage of `RangeFrom` range syntax
[INFO] [stdout]    --> src/main.rs:327:43
[INFO] [stdout]     |
[INFO] [stdout] 327 |                 replace_by.push_str(&line[2..]);
[INFO] [stdout]     |                                           ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: usage of `RangeFrom` range syntax
[INFO] [stdout]    --> src/main.rs:332:34
[INFO] [stdout]     |
[INFO] [stdout] 332 |             let given = &content[i..];
[INFO] [stdout]     |                                  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:95:9
[INFO] [stdout]    |
[INFO] [stdout] 95 |         write!(file, "{}", content);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]    = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:126:13
[INFO] [stdout]     |
[INFO] [stdout] 126 |             write!(content, "{}", ast);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 3 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0063]: missing field `keep_eol` in initializer of `Command`
[INFO] [stdout]    --> src/main.rs:342:27
[INFO] [stdout]     |
[INFO] [stdout] 342 |                 let cmd = Command::Set {
[INFO] [stdout]     |                           ^^^^^^^^^^^^ missing `keep_eol`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:344:28
[INFO] [stdout]     |
[INFO] [stdout] 344 |                     value: replace_by
[INFO] [stdout]     |                            ^^^^^^^^^^ expected `Option<String>`, found `String`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected enum `Option<String>`
[INFO] [stdout]              found struct `String`
[INFO] [stdout] help: try wrapping the expression in `Some`
[INFO] [stdout]     |
[INFO] [stdout] 344 |                     value: Some(replace_by)
[INFO] [stdout]     |                            +++++          +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors; 4 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0063, E0308.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0063`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `nixcfg` (bin "nixcfg" test) due to 3 previous errors; 4 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "b39d6f0018611232a57f8ca3e78a1500661753011d176678bf490a7e60630cc2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b39d6f0018611232a57f8ca3e78a1500661753011d176678bf490a7e60630cc2", kill_on_drop: false }`
[INFO] [stdout] b39d6f0018611232a57f8ca3e78a1500661753011d176678bf490a7e60630cc2
